/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.KeyNamePair;

/** Generated Model for BPM_Form
 *  @author Adempiere (generated) 
 *  @version Release 3.7.0LTS - $Id$ */
public class X_BPM_Form extends PO implements I_BPM_Form, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20131002L;

    /** the default Constructor */
    public X_BPM_Form(Properties ctx)
    { 
      super (ctx, null, null);
    } 

    /** Standard Constructor */
    public X_BPM_Form (Properties ctx, int BPM_Form_ID, String trxName)
    {
      super (ctx, BPM_Form_ID, trxName);
      /** if (BPM_Form_ID == 0)
        {
			setBPM_Form_ID (0);
			setBPM_FormCode_ID (0);
			setBPM_VersionBudget_ID (0);
// 1000010
			setFormView (null);
// N
			setName (null);
			setProcessing (false);
// N
			setRefreshLines (null);
// N
        } */
    }

    /** Load Constructor */
    public X_BPM_Form (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 3 - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_BPM_Form[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	/** Set BPM_Form ID.
		@param BPM_Form_ID BPM_Form ID	  */
	public void setBPM_Form_ID (int BPM_Form_ID)
	{
		if (BPM_Form_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_BPM_Form_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_BPM_Form_ID, Integer.valueOf(BPM_Form_ID));
	}

	/** Get BPM_Form ID.
		@return BPM_Form ID	  */
	public int getBPM_Form_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_BPM_Form_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_BPM_FormCode getBPM_FormCode() throws RuntimeException
    {
		return (I_BPM_FormCode)MTable.get(getCtx(), I_BPM_FormCode.Table_Name)
			.getPO(getBPM_FormCode_ID(), get_TrxName());	}

	/** Set BPM_FormCode ID.
		@param BPM_FormCode_ID BPM_FormCode ID	  */
	public void setBPM_FormCode_ID (int BPM_FormCode_ID)
	{
		if (BPM_FormCode_ID < 1) 
			set_Value (COLUMNNAME_BPM_FormCode_ID, null);
		else 
			set_Value (COLUMNNAME_BPM_FormCode_ID, Integer.valueOf(BPM_FormCode_ID));
	}

	/** Get BPM_FormCode ID.
		@return BPM_FormCode ID	  */
	public int getBPM_FormCode_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_BPM_FormCode_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_BPM_VersionBudget getBPM_VersionBudget() throws RuntimeException
    {
		return (I_BPM_VersionBudget)MTable.get(getCtx(), I_BPM_VersionBudget.Table_Name)
			.getPO(getBPM_VersionBudget_ID(), get_TrxName());	}

	/** Set BPM_VersionBudget ID.
		@param BPM_VersionBudget_ID BPM_VersionBudget ID	  */
	public void setBPM_VersionBudget_ID (int BPM_VersionBudget_ID)
	{
		if (BPM_VersionBudget_ID < 1) 
			set_Value (COLUMNNAME_BPM_VersionBudget_ID, null);
		else 
			set_Value (COLUMNNAME_BPM_VersionBudget_ID, Integer.valueOf(BPM_VersionBudget_ID));
	}

	/** Get BPM_VersionBudget ID.
		@return BPM_VersionBudget ID	  */
	public int getBPM_VersionBudget_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_BPM_VersionBudget_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set FormView.
		@param FormView FormView	  */
	public void setFormView (String FormView)
	{
		set_Value (COLUMNNAME_FormView, FormView);
	}

	/** Get FormView.
		@return FormView	  */
	public String getFormView () 
	{
		return (String)get_Value(COLUMNNAME_FormView);
	}

	/** Set Name.
		@param Name 
		Alphanumeric identifier of the entity
	  */
	public void setName (String Name)
	{
		set_Value (COLUMNNAME_Name, Name);
	}

	/** Get Name.
		@return Alphanumeric identifier of the entity
	  */
	public String getName () 
	{
		return (String)get_Value(COLUMNNAME_Name);
	}

    /** Get Record ID/ColumnName
        @return ID/ColumnName pair
      */
    public KeyNamePair getKeyNamePair() 
    {
        return new KeyNamePair(get_ID(), getName());
    }

	/** Set Process Now.
		@param Processing Process Now	  */
	public void setProcessing (boolean Processing)
	{
		set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing));
	}

	/** Get Process Now.
		@return Process Now	  */
	public boolean isProcessing () 
	{
		Object oo = get_Value(COLUMNNAME_Processing);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set RefreshLines.
		@param RefreshLines 
		Обновить строки
	  */
	public void setRefreshLines (String RefreshLines)
	{
		set_Value (COLUMNNAME_RefreshLines, RefreshLines);
	}

	/** Get RefreshLines.
		@return Обновить строки
	  */
	public String getRefreshLines () 
	{
		return (String)get_Value(COLUMNNAME_RefreshLines);
	}

	/** Set IsOrderBy.
	@param IsOrderBy	  */
	public void setIsOrderBy (boolean IsOrderBy)
	{
		set_Value (COLUMNNAME_IsOrderBy, Boolean.valueOf(IsOrderBy));
	}

	/** Get IsOrderBy.
	@return IsOrderBy	  */
	public boolean isOrderBy () 
	{
		Object oo = get_Value(COLUMNNAME_IsOrderBy);
		if (oo != null) 
		{
			if (oo instanceof Boolean) 
				return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}
	
	/** Set TabLevel.
	@param TabLevel 
	 */
	public void setTabLevel (int TabLevel)
	{
		if (TabLevel < 1) 
			set_Value (COLUMNNAME_TabLevel, null);
		else 
			set_Value (COLUMNNAME_TabLevel, Integer.valueOf(TabLevel));
	}

	/** Get TabLevel.
	@return TabLevel
	 */
	public int getTabLevel () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_TabLevel);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}
	
	/** Set WebParam1.
	@param WebParam1 
	*/
	public void setWebParam1 (String WebParam1)
	{
		set_Value (COLUMNNAME_WebParam1, WebParam1);
	}

	/** Get WebParam1.
	@return WebParam1
	 */
	public String getWebParam1() 
	{
		return (String)get_Value(COLUMNNAME_WebParam1);
	}

	/** Set WebParam2.
	@param WebParam2 
	*/
	public void setWebParam2 (String WebParam2)
	{
		set_Value (COLUMNNAME_WebParam2, WebParam2);
	}

	/** Get WebParam2.
	@return WebParam2
	 */
	public String getWebParam2() 
	{
		return (String)get_Value(COLUMNNAME_WebParam2);
	}

	/** Set WebParam3.
	@param WebParam3 
	*/
	public void setWebParam3 (String WebParam3)
	{
		set_Value (COLUMNNAME_WebParam3, WebParam3);
	}

	/** Get WebParam3.
	@return WebParam3
	 */
	public String getWebParam3() 
	{
		return (String)get_Value(COLUMNNAME_WebParam3);
	}

	/** Set WebParam4.
	@param WebParam4 
	*/
	public void setWebParam4 (String WebParam4)
	{
		set_Value (COLUMNNAME_WebParam4, WebParam4);
	}

	/** Get WebParam4.
	@return WebParam4
	 */
	public String getWebParam4() 
	{
		return (String)get_Value(COLUMNNAME_WebParam4);
	}

	/** Set WebParam5.
	@param WebParam5 
	*/
	public void setWebParam5 (String WebParam5)
	{
		set_Value (COLUMNNAME_WebParam5, WebParam5);
	}

	/** Get WebParam5.
	@return WebParam5
	 */
	public String getWebParam5() 
	{
		return (String)get_Value(COLUMNNAME_WebParam5);
	}

}